package com.yfp.job.task;

import com.yfp.minapp.auth.api.RemoteClientService;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;


/**
 * 定时任务调度测试
 *
 * @author ruoyi
 */
@Slf4j
@Component("orderTask")
public class OrderTask {

    @Resource
    private RemoteClientService remoteClientService;

    public void checkAllOrderExpired() {
        log.info("定时任务开始执行：检查订单是否过期");
        remoteClientService.checkAllOrderExpired();
    }
}
